package com.shuizhu.template;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.RoundingMode;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelIgnoreUnannotated
public class StudentByFill {
  
  /**
   * 学生Id
   */
  @ExcelProperty(value = "学生Id")
  private String id;
  
  /**
   * 学生姓名
   */
  @ExcelProperty(value = "学生姓名")
  private String name;
  
  /**
   * 学生出生日期
   */
  @DateTimeFormat(value = "yyyy-MM-dd")
  @ExcelProperty(value = "学生出生日期")
  private Date birthday;
  
  /**
   * 学生性别
   */
  @ExcelProperty(value = "学生性别")
  private String gender;
  
  /**
   * 学费
   */
  @ExcelProperty(value = "学费")
  @NumberFormat(value = "#.00", roundingMode = RoundingMode.HALF_UP)
  private Double tuition;
  
  /**
   * 学生院系
   */
  @ExcelProperty(value = "学生院系")
  private String department;
  
}

